<?php


class Adept_Component_TextArea extends Adept_Component_ValueControl 
{
    
    protected $rows;
    protected $cols;
    protected $readOnly;
    
    public function getRows() 
    {
        if (!is_null($this->rows)) {
            return $this->rows;
        }
        return $this->getValueOfBinding('rows', null);
    }
    
    public function setRows($rows) 
    {
        $this->rows = $rows;
    }
    
    public function getCols() 
    {
        if (!is_null($this->cols)) {
            return $this->cols;
        }
        return $this->getValueOfBinding('cols', null);
    }
    
    public function setCols($cols) 
    {
        $this->cols = $cols;
    }
    
    public function isReadOnly() 
    {
        if (!is_null($this->readOnly)) {
            return $this->readOnly;
        }
        return $this->getValueOfBinding('readOnly', false);
    }
    
    public function setReadOnly($readOnly) 
    {
        $this->readOnly = $readOnly;
    }
    
    public function hasRenderer() 
    {
    	return true;
    }	
    
}